﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProjectView.ascx.cs" Inherits="ScrumBox.Web.Views.Project.ProjectView" %>
<%@ Import Namespace="MvcContrib"%>
<%@ Import Namespace="ScrumBox.Model"%>

<script type="text/javascript">
    $(document).ready( function() {
      $('#projectStart').datepicker();
    });    
</script>

<% var project = ViewData.Get<Project>();%>
<label for="projectName">Title</label>
<%= Html.TextBox("projectName", project.Name ?? "", new { @class="required"}) %>
<span class="info">The name of the project.</span>

<label for="projectDesc">Description</label>
<%= Html.TextArea("projectDesc", project.Description ?? "", 4, 50, new { @class="required"}) %>
<span class="info">The description of the project.</span>

<label for="projectStart">Start Date</label>
<%= Html.TextBox("projectStart", project.StartDate.HasValue ? project.StartDate.Value.ToShortDateString() : "", new { @class = "required" })%>
<span class="info">The start date of the project.</span>

<label for="projectKey">Key</label>
<%= Html.TextBox("projectKey", project.Key ?? "", new { @class = "required" })%>
<span class="info">The key of the project.</span>
                   
